package com.voice.server.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "tbl_user")
@DynamicUpdate
@Proxy(lazy = false)
public class User extends SupperEntity{

    @Column(unique = true)
    private String phone;

    @JsonIgnore
    private String password;

    private Integer userType;


}
